package com.jy.rhin.config;

import lombok.Getter;

@Getter
public enum RhinFaultSubCode {

    QueryParamIncorrectFault("QueryParamIncorrectFault","查询参数错误"),
    ValueSetNotFoundFault("ValueSetNotFoundFault","值域不存在"),
    ConceptMapNotFoundFault("ConceptMapNotFoundFault","值域映射不存在"),
    TopicNotSupportedFault("TopicNotSupportedFault","主题不被支持异常"),
    InvalidFilterFault("InvalidFilterFault","无效过滤器异常"),
    SubscribeCreationFailedFault("SubscribeCreationFailedFault","订阅创建失败异常"),
    ResourceUnkownFault("ResourceUnkownFault","资源未找到异常。"),
    UnableToDestroySubscriptionFault("UnableToDestroySubscriptionFault","取消订阅失败异常。"),
    PauseFailedFault("PauseFailedFault","暂停订阅失败异常"),
    ResumeFailedFault("ResumeFailedFault","恢复订阅失败异常"),
    UnableToCreatePullPointFault("UnableToCreatePullPointFault","创建拉取点失败异常"),
    UnableToDestroyPullPointFault("UnableToDestroyPullPointFault","移除通知拉取点失败异常"),
    UnableToGetMessagesFault("UnableToGetMessagesFault","拉取通知失败异常"),
    PatientExistFault("PatientExistFault","注册的居民信息已存在"),
    PatientNotFoundFault("PatientNotFoundFault","查询的居民信息不存在"),
    PatientInformationIncompleteFault("PatientInformationIncompleteFault","查询请求信息缺失"),
    PatientInformationIncorrectFault("PatientInformationIncorrectFault","查询请求信息错误"),

    OrganizationNotFoundFault("OrganizationNotFoundFault","机构资源不存在"),
    OrganizationInformationIncoupleteFault("OrganizationInformationIncoupleteFault","机构资源信息不完整"),
    //健康档案
    RetrieveDocumentSetFault("RetrieveDocumentSetFault","未查询到健康档案"),
    RegisterDocumentSetNotFoundFault("RegisterDocumentSetNotFoundFault","注册健康档案资源不存在"),
    UpdateDocumentSetNotFoundFault("UpdateDocumentSetNotFoundFault","更新将康档案不存在"),
    UpdateDocumentSetInformationIncorrectFault("UpdateDocumentSetInformationIncorrectFault","更新健康档案信息不正确"),

    PractitionerQueryParamIncorrectFault("PractitionerQueryParamIncorrectFault","预存查询的唯一编号错误"),
    PractitionerNotFoundFault("PractitionerNotFoundFault","医疗卫生人员资源不存在异常"),
    PractitionerInformationIncompleteFault("PractitionerInformationIncompleteFault","医疗卫生人员资源不完整异常"),
    PractitionerInformationIncorrectFault("PractitionerInformationIncorrectFault","医疗卫生人员资源不正确异常"),
    ;

    private String code;
    private String desc;

    RhinFaultSubCode(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
